package com.xu.system.service.db.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xu.system.mapper.SysWorkTimeConfigMapper;
import com.xu.system.model.entity.SysWorkTimeConfig;
import com.xu.system.model.pojo.workTime.WorkTimeConfigBo;
import com.xu.system.service.db.ISysWorkTimeConfigService;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 工作时间配置表 服务实现类
 * </p>
 *
 * @author 许乾伟
 * @since 2024-12-24 03:41:33
 */
@Service
public class SysWorkTimeConfigServiceImpl extends ServiceImpl<SysWorkTimeConfigMapper, SysWorkTimeConfig> implements ISysWorkTimeConfigService {

    @Override
    public SysWorkTimeConfig getByConfigCode(String configCode) {
        QueryWrapper<SysWorkTimeConfig> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq(SysWorkTimeConfig.CONFIG_CODE, configCode);
        queryWrapper.eq(SysWorkTimeConfig.IS_DELETE, Boolean.FALSE);
        return getOne(queryWrapper);
    }
}
